#ifndef __BASIC__
#define __BASIC__

#include<stdio.h>
#include<stdlib.h>

#endif

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif


#ifndef __CROSS__
#define __CROSS__

typedef struct stack{
	int x;
	int y;
	int way;
}Stack;


typedef struct cross{
	int top;
	Stack* crst;	
}Cross;

Cross* mkCross();
int push(Cross* cross, int x, int y, int way);
int pop(Cross* cross,int* x, int* y);
int isempty(Cross* cross);
void delCross(Cross* cross);
int isfull(Cross* cross);

#endif
